<div style="float:left;margin-right:50px;">
    <b>Contract Status</b>
    <?php
        $table = new CI_Table();
        $table->set_template(array(
            'table_open' => '<table width="250">'
        ));
    ?>
    <?php
        foreach (ContractUtil::getContractStatusStatic($type) as $status => $count)
        {
            $table->add_row(
                    $status, array(
                'data' => $count,
                'align' => 'right'
                    )
            );
        }
        echo $table->generate();
    ?>
</div>
<div style="float:left;">
    <b>Billing Status</b>
    <?php
        $table->clear();
        foreach (ContractUtil::getContractBillingStatusStatic($type) as $billingStatus => $count)
        {
            $table->add_row(
                    $billingStatus, array(
                'data' => $count,
                'align' => 'right'
            ));
        }
        echo $table->generate();
    ?>
</div>